Bilgisayardaki mp3 uzantili dosyalari bulma

43

import fnmatch
import os

rootPath = '/'
pattern = '*.mp3'

for root, dirs, files in os.walk(rootPath):
    for filename in fnmatch.filter(files, pattern):
        print( os.path.join(root, filename))

Comments

Submit
0 Comments